package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.dao.SurveyDAO;
import what.the.fun.domain.AnswerStatistic;
import what.the.fun.domain.Survey;

public class SurveyServiceImpl implements SurveyService{

	@Autowired
	SurveyDAO surveyDAO;
	
	@Override
	public List<Survey> getDataList() {
		return surveyDAO.getDataList();
	}

	@Override
	public void insertData(Survey data) {
		surveyDAO.insertData(data);
	}

	@Override
	public void updateData(Survey data) {
		surveyDAO.updateData(data);
	}

	@Override
	public void deleteData(String id) {
		surveyDAO.deleteData(id);
	}

	@Override
	public Survey getData(String id) {
		return surveyDAO.getData(id);
	}

	@Override
	public List<Survey> getSurveyListByCampId(String campId) {
		return surveyDAO.getSurveyListByCampId(campId);
	}

	@Override
	public List<AnswerStatistic> getAnswerStatisticListBySurveyId(String id) {
		return surveyDAO.getAnswerStatisticListBySurveyId(id);
	}

}
